package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

public class Bldc extends BasePojo {
    //不良对策ID
    private Integer badreplyId;

    //不良对策名称
    private String badreplyName;

    //不良对策类ID
    private Integer badreplyTypeId;
    //不良对策类名称
    private String badreplyTypeName;
    //备注
    private String remark;

    //状态码
    private Integer dataState;

    //状态码翻译
    private String dataStateName;

    public String getDataStateName() {
        Integer dataState = getDataState();
        String dataStateName ="";
        switch (dataState){
            case 1:
                dataStateName = "启用";
                break;
            case 2:
                dataStateName = "删除";
                break;
            case 3:
                dataStateName = "停用";
                break;
        }
        return dataStateName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    public Integer getBadreplyId() {
        return badreplyId;
    }

    public void setBadreplyId(Integer badreplyId) {
        this.badreplyId = badreplyId;
    }

    public String getBadreplyName() {
        return badreplyName;
    }

    public void setBadreplyName(String badreplyName) {
        this.badreplyName = badreplyName == null ? null : badreplyName.trim();
    }

    public Integer getBadreplyTypeId() {
        return badreplyTypeId;
    }

    public void setBadreplyTypeId(Integer badreplyTypeId) {
        this.badreplyTypeId = badreplyTypeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getBadreplyTypeName() {
        return badreplyTypeName;
    }

    public void setBadreplyTypeName(String badreplyTypeName) {
        this.badreplyTypeName = badreplyTypeName;
    }

    public Bldc() {
    }

    public Bldc(String badreplyName, String badreplyTypeName) {
        this.badreplyName = badreplyName;
        this.badreplyTypeName = badreplyTypeName;
    }
}